.class public Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;
.super Lcom/estrongs/android/ui/base/HomeAsBackActivity;
.source "SimplePopNoteEditor.java"

# interfaces
.implements Lcom/estrongs/android/pop/app/editor/ReaderTextView$a;
.implements Landroid/widget/SeekBar$OnSeekBarChangeListener;
.implements Lcom/estrongs/android/pop/app/editor/ObservableScrollView$b;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;,
        Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$t;,
        Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;,
        Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$q;,
        Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$u;,
        Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$v;
    }
.end annotation


# static fields
.field private static final X:Ljava/lang/String;


# instance fields
.field private A:Z

.field private B:Z

.field private C:Z

.field private D:I

.field private E:I

.field private F:I

.field private G:Ljava/io/File;

.field private H:J

.field private I:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;

.field private J:Lcom/estrongs/android/pop/app/editor/e;

.field private K:I

.field private L:I

.field private M:Z

.field private N:Lcom/estrongs/android/pop/app/editor/c;

.field private O:I

.field private P:I

.field private Q:Lcom/estrongs/android/statistics/b;

.field private R:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;

.field private S:Z

.field private final T:Landroid/os/Handler;

.field U:Z

.field V:Z

.field private final W:Ljava/lang/Runnable;

.field private j:Ljava/lang/String;

.field private k:Ljava/lang/String;

.field private l:Landroid/content/Context;

.field private m:Lcom/estrongs/android/pop/app/editor/b;

.field private n:Lcom/estrongs/android/pop/app/editor/ReaderTextView;

.field private o:Landroid/widget/EditText;

.field private p:Lcom/estrongs/android/pop/app/editor/ObservableScrollView;

.field private q:Lcom/estrongs/android/pop/app/editor/ObservableScrollView;

.field private r:Landroid/widget/LinearLayout;

.field private s:Landroid/widget/LinearLayout;

.field private t:Landroid/widget/SeekBar;

.field private u:Landroid/widget/TextView;

.field private v:I

.field private w:Ljava/lang/String;

.field private x:Ljava/lang/StringBuilder;

.field private y:Ljava/lang/Object;

.field private z:Ljava/lang/Object;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 1
    const-class v0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->X:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>()V
    .locals 4

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/ui/base/HomeAsBackActivity;-><init>()V

    const-string v0, "UTF-8"

    .line 2
    iput-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->j:Ljava/lang/String;

    const/4 v0, 0x0

    .line 3
    iput-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->k:Ljava/lang/String;

    .line 4
    iput-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->l:Landroid/content/Context;

    .line 5
    iput-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m:Lcom/estrongs/android/pop/app/editor/b;

    const/4 v1, 0x0

    .line 6
    iput v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->v:I

    .line 7
    iput-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->w:Ljava/lang/String;

    .line 8
    iput-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x:Ljava/lang/StringBuilder;

    .line 9
    new-instance v2, Ljava/lang/Object;

    invoke-direct {v2}, Ljava/lang/Object;-><init>()V

    iput-object v2, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->y:Ljava/lang/Object;

    .line 10
    new-instance v2, Ljava/lang/Object;

    invoke-direct {v2}, Ljava/lang/Object;-><init>()V

    iput-object v2, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->z:Ljava/lang/Object;

    .line 11
    iput-boolean v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->A:Z

    .line 12
    iput-boolean v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->B:Z

    .line 13
    iput-boolean v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->C:Z

    const/4 v2, -0x1

    .line 14
    iput v2, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->D:I

    .line 15
    iput v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->E:I

    .line 16
    iput v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->F:I

    .line 17
    iput-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->G:Ljava/io/File;

    const-wide/16 v2, 0x0

    .line 18
    iput-wide v2, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->H:J

    .line 19
    iput-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->I:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;

    .line 20
    iput-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->J:Lcom/estrongs/android/pop/app/editor/e;

    .line 21
    iput v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->K:I

    .line 22
    iput-boolean v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->M:Z

    .line 23
    iput-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->N:Lcom/estrongs/android/pop/app/editor/c;

    .line 24
    iput v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->O:I

    .line 25
    iput v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->P:I

    .line 26
    iput-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->Q:Lcom/estrongs/android/statistics/b;

    .line 27
    iput-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->R:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;

    const/4 v0, 0x1

    .line 28
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->S:Z

    .line 29
    new-instance v2, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a;

    invoke-direct {v2, p0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a;-><init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V

    iput-object v2, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->T:Landroid/os/Handler;

    .line 30
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->U:Z

    .line 31
    iput-boolean v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->V:Z

    .line 32
    new-instance v0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$h;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$h;-><init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->W:Ljava/lang/Runnable;

    return-void
.end method

.method static synthetic A(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->A:Z

    return p0
.end method

.method static synthetic B(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/ObservableScrollView;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->p:Lcom/estrongs/android/pop/app/editor/ObservableScrollView;

    return-object p0
.end method

.method static synthetic C(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->C:Z

    return p0
.end method

.method static synthetic D(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->B:Z

    return p0
.end method

.method static synthetic E(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)I
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->J()I

    move-result p0

    return p0
.end method

.method static synthetic F(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->v:I

    return p0
.end method

.method static synthetic G(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)I
    .locals 2

    .line 2
    iget v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->v:I

    add-int/lit8 v1, v0, 0x1

    iput v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->v:I

    return v0
.end method

.method static synthetic G()Ljava/lang/String;
    .locals 1

    .line 1
    sget-object v0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->X:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic H(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)I
    .locals 2

    .line 1
    iget v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->v:I

    add-int/lit8 v1, v0, -0x1

    iput v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->v:I

    return v0
.end method

.method private H()V
    .locals 2

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->T:Landroid/os/Handler;

    const/4 v1, 0x7

    invoke-virtual {v0, v1}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v0

    .line 3
    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->T:Landroid/os/Handler;

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    return-void
.end method

.method static synthetic I(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/widget/LinearLayout;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->s:Landroid/widget/LinearLayout;

    return-object p0
.end method

.method private I()V
    .locals 6

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->N:Lcom/estrongs/android/pop/app/editor/c;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/editor/c;->i()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x5

    .line 3
    invoke-virtual {p0, v0}, Landroid/app/Activity;->showDialog(I)V

    return-void

    .line 4
    :cond_0
    iget v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->K:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_1

    return-void

    .line 5
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->z:Ljava/lang/Object;

    monitor-enter v0

    .line 6
    :try_start_0
    iget-object v2, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m:Lcom/estrongs/android/pop/app/editor/b;

    if-eqz v2, :cond_2

    .line 7
    iget-object v2, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x:Ljava/lang/StringBuilder;

    if-eqz v2, :cond_2

    .line 8
    iput v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->K:I

    .line 9
    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->r:Landroid/widget/LinearLayout;

    const/16 v2, 0x8

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 10
    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->q:Lcom/estrongs/android/pop/app/editor/ObservableScrollView;

    invoke-virtual {v1, v2}, Landroid/widget/ScrollView;->setVisibility(I)V

    .line 11
    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->p:Lcom/estrongs/android/pop/app/editor/ObservableScrollView;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/widget/ScrollView;->setVisibility(I)V

    .line 12
    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->T:Landroid/os/Handler;

    const/4 v3, 0x3

    invoke-virtual {v1, v3}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v1

    .line 13
    new-instance v3, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$v;

    iget-object v4, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x:Ljava/lang/StringBuilder;

    .line 14
    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    iget-object v5, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->q:Lcom/estrongs/android/pop/app/editor/ObservableScrollView;

    invoke-virtual {v5}, Landroid/widget/ScrollView;->getScrollY()I

    move-result v5

    invoke-direct {v3, p0, v4, v2, v5}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$v;-><init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;Ljava/lang/String;II)V

    .line 15
    iput-object v3, v1, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 16
    iget-object v2, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->T:Landroid/os/Handler;

    invoke-virtual {v2, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 17
    :cond_2
    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 18
    invoke-virtual {p0}, Landroidx/appcompat/app/AppCompatActivity;->invalidateOptionsMenu()V

    return-void

    :catchall_0
    move-exception v1

    .line 19
    :try_start_1
    monitor-exit v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw v1
.end method

.method private J()I
    .locals 10

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->z:Ljava/lang/Object;

    monitor-enter v0

    .line 2
    :try_start_0
    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m:Lcom/estrongs/android/pop/app/editor/b;

    const/4 v2, -0x1

    if-nez v1, :cond_0

    .line 3
    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    return v2

    .line 4
    :cond_0
    :try_start_1
    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m:Lcom/estrongs/android/pop/app/editor/b;

    invoke-virtual {v1}, Lcom/estrongs/android/pop/app/editor/b;->getPosition()J

    move-result-wide v3
    :try_end_1
    .catch Ljava/io/UnsupportedEncodingException; {:try_start_1 .. :try_end_1} :catch_4
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_3
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 5
    :try_start_2
    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->n:Lcom/estrongs/android/pop/app/editor/ReaderTextView;

    if-eqz v1, :cond_7

    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->q:Lcom/estrongs/android/pop/app/editor/ObservableScrollView;

    if-nez v1, :cond_1

    goto/16 :goto_4

    .line 6
    :cond_1
    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->n:Lcom/estrongs/android/pop/app/editor/ReaderTextView;

    invoke-virtual {v1}, Landroid/widget/TextView;->getBottom()I

    move-result v1

    iget-object v5, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->q:Lcom/estrongs/android/pop/app/editor/ObservableScrollView;

    invoke-virtual {v5}, Landroid/widget/ScrollView;->getHeight()I

    move-result v5

    sub-int/2addr v1, v5

    iget-object v5, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->q:Lcom/estrongs/android/pop/app/editor/ObservableScrollView;

    invoke-virtual {v5}, Landroid/widget/ScrollView;->getScrollY()I

    move-result v5

    sub-int/2addr v1, v5

    if-lez v1, :cond_6

    .line 7
    iget-object v3, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->n:Lcom/estrongs/android/pop/app/editor/ReaderTextView;

    invoke-virtual {v3}, Landroid/widget/TextView;->getLineHeight()I

    move-result v3

    div-int v9, v1, v3

    .line 8
    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x:Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_5

    .line 9
    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v3
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    if-gtz v3, :cond_2

    goto :goto_2

    .line 10
    :cond_2
    :try_start_3
    iget-object v5, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->n:Lcom/estrongs/android/pop/app/editor/ReaderTextView;

    const/4 v6, 0x0

    .line 11
    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v3

    add-int/lit8 v7, v3, -0x1

    move-object v4, p0

    move-object v8, v1

    invoke-direct/range {v4 .. v9}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->a(Lcom/estrongs/android/pop/app/editor/ReaderTextView;IILjava/lang/String;I)Ljava/lang/String;

    move-result-object v3
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_2
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    if-nez v3, :cond_3

    goto :goto_0

    :cond_3
    move-object v1, v3

    .line 12
    :goto_0
    :try_start_4
    iget-object v3, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m:Lcom/estrongs/android/pop/app/editor/b;

    invoke-virtual {v3}, Lcom/estrongs/android/pop/app/editor/b;->b()Ljava/lang/String;

    move-result-object v3

    if-eqz v3, :cond_4

    iget-object v3, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m:Lcom/estrongs/android/pop/app/editor/b;

    invoke-virtual {v3}, Lcom/estrongs/android/pop/app/editor/b;->b()Ljava/lang/String;

    move-result-object v3

    goto :goto_1

    :cond_4
    iget-object v3, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->j:Ljava/lang/String;
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    .line 13
    :goto_1
    :try_start_5
    iget-object v4, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m:Lcom/estrongs/android/pop/app/editor/b;

    invoke-virtual {v4}, Lcom/estrongs/android/pop/app/editor/b;->getPosition()J

    move-result-wide v4

    invoke-virtual {v1, v3}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B

    move-result-object v1

    array-length v1, v1
    :try_end_5
    .catch Ljava/io/UnsupportedEncodingException; {:try_start_5 .. :try_end_5} :catch_1
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_0
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    int-to-long v1, v1

    sub-long v1, v4, v1

    move-wide v3, v1

    goto :goto_3

    :catch_0
    move-exception v1

    .line 14
    :try_start_6
    invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V

    .line 15
    monitor-exit v0

    return v2

    :catch_1
    move-exception v1

    .line 16
    invoke-virtual {v1}, Ljava/io/UnsupportedEncodingException;->printStackTrace()V

    .line 17
    monitor-exit v0

    return v2

    :catch_2
    move-exception v1

    .line 18
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    .line 19
    monitor-exit v0

    return v2

    .line 20
    :cond_5
    :goto_2
    sget-object v1, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->X:Ljava/lang/String;

    const-string v3, "getCurrentProgress empty text"

    invoke-static {v1, v3}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 21
    monitor-exit v0
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_0

    return v2

    :cond_6
    :goto_3
    long-to-double v1, v3

    const-wide/high16 v3, 0x4059000000000000L    # 100.0

    .line 22
    invoke-static {v1, v2}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v1, v1, v3

    :try_start_7
    iget-wide v3, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->H:J
    :try_end_7
    .catchall {:try_start_7 .. :try_end_7} :catchall_0

    long-to-double v3, v3

    invoke-static {v3, v4}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v1, v3

    :try_start_8
    invoke-static {v1, v2}, Ljava/lang/Math;->floor(D)D

    move-result-wide v1

    double-to-int v1, v1

    .line 23
    monitor-exit v0

    return v1

    .line 24
    :cond_7
    :goto_4
    monitor-exit v0

    return v2

    :catch_3
    move-exception v1

    .line 25
    invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V

    .line 26
    monitor-exit v0

    return v2

    :catch_4
    move-exception v1

    .line 27
    invoke-virtual {v1}, Ljava/io/UnsupportedEncodingException;->printStackTrace()V

    .line 28
    monitor-exit v0

    return v2

    :catchall_0
    move-exception v1

    .line 29
    monitor-exit v0
    :try_end_8
    .catchall {:try_start_8 .. :try_end_8} :catchall_0

    throw v1
.end method

.method private K()Landroid/view/View$OnTouchListener;
    .locals 1

    .line 1
    new-instance v0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$o;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$o;-><init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V

    return-object v0
.end method

.method private L()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->r:Landroid/widget/LinearLayout;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    return-void
.end method

.method private M()V
    .locals 3

    .line 1
    new-instance v0, Lcom/estrongs/android/util/e;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->j:Ljava/lang/String;

    new-instance v2, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$n;

    invoke-direct {v2, p0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$n;-><init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V

    invoke-direct {v0, p0, v1, v2}, Lcom/estrongs/android/util/e;-><init>(Landroid/content/Context;Ljava/lang/String;Lcom/estrongs/android/util/e$b;)V

    .line 2
    invoke-virtual {v0}, Lcom/estrongs/android/util/e;->a()V

    return-void
.end method

.method private N()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->r:Landroid/widget/LinearLayout;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    return-void
.end method

.method private O()V
    .locals 13

    const/4 v0, 0x5

    const/4 v1, 0x2

    const/4 v2, 0x0

    .line 1
    :try_start_0
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->s()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2
    .catchall {:try_start_0 .. :try_end_0} :catchall_4

    .line 2
    :try_start_1
    iget-object v3, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->N:Lcom/estrongs/android/pop/app/editor/c;

    invoke-virtual {v3}, Lcom/estrongs/android/pop/app/editor/c;->d()Ljava/io/File;

    move-result-object v3

    iput-object v3, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->G:Ljava/io/File;
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_2
    .catchall {:try_start_1 .. :try_end_1} :catchall_4

    goto :goto_0

    :catch_0
    move-exception v3

    .line 3
    :try_start_2
    invoke-virtual {v3}, Ljava/io/IOException;->getMessage()Ljava/lang/String;

    move-result-object v3

    iput-object v3, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->k:Ljava/lang/String;

    .line 4
    :goto_0
    iget-object v3, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->G:Ljava/io/File;

    if-nez v3, :cond_1

    .line 5
    iget-object v3, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->T:Landroid/os/Handler;

    invoke-virtual {v3, v0, v1, v2}, Landroid/os/Handler;->obtainMessage(III)Landroid/os/Message;

    move-result-object v3

    .line 6
    iget-object v4, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->T:Landroid/os/Handler;

    invoke-virtual {v4, v3}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 7
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->H()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_4

    .line 8
    :try_start_3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m:Lcom/estrongs/android/pop/app/editor/b;

    if-eqz v0, :cond_0

    .line 9
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m:Lcom/estrongs/android/pop/app/editor/b;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/editor/b;->close()V
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_1

    goto :goto_1

    :catch_1
    move-exception v0

    .line 10
    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    :cond_0
    :goto_1
    return-void

    .line 11
    :cond_1
    :try_start_4
    iget-object v3, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->N:Lcom/estrongs/android/pop/app/editor/c;

    invoke-virtual {v3}, Lcom/estrongs/android/pop/app/editor/c;->e()J

    move-result-wide v3

    iput-wide v3, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->H:J

    .line 12
    iget-object v3, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->N:Lcom/estrongs/android/pop/app/editor/c;

    invoke-virtual {v3}, Lcom/estrongs/android/pop/app/editor/c;->c()Ljava/lang/String;

    move-result-object v3

    iput-object v3, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->j:Ljava/lang/String;

    .line 13
    new-instance v3, Lcom/estrongs/android/pop/app/editor/b;

    iget-object v4, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->l:Landroid/content/Context;

    iget-object v5, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->G:Ljava/io/File;

    iget-object v6, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->j:Ljava/lang/String;

    invoke-direct {v3, v4, v5, v6}, Lcom/estrongs/android/pop/app/editor/b;-><init>(Landroid/content/Context;Ljava/io/File;Ljava/lang/String;)V

    iput-object v3, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m:Lcom/estrongs/android/pop/app/editor/b;

    .line 14
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    iput-object v3, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x:Ljava/lang/StringBuilder;

    const/16 v3, 0x2000

    const/16 v4, 0x1000

    new-array v5, v4, [C

    .line 15
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->H()V

    .line 16
    :goto_2
    iget-boolean v6, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->A:Z

    if-nez v6, :cond_d

    .line 17
    iget-object v6, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->y:Ljava/lang/Object;

    monitor-enter v6
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_2
    .catchall {:try_start_4 .. :try_end_4} :catchall_4

    .line 18
    :try_start_5
    iget-boolean v7, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->B:Z

    const/4 v8, 0x3

    const/4 v9, 0x1

    if-eqz v7, :cond_2

    .line 19
    iput-boolean v9, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->U:Z

    .line 20
    iput-boolean v2, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->V:Z

    .line 21
    iput-boolean v2, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->B:Z

    goto :goto_3

    .line 22
    :cond_2
    iget v7, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->E:I

    if-le v7, v8, :cond_3

    iget-boolean v7, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->C:Z

    if-eqz v7, :cond_3

    .line 23
    iput-boolean v2, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->U:Z

    .line 24
    iput-boolean v9, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->V:Z

    .line 25
    iput-boolean v2, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->C:Z

    .line 26
    :cond_3
    :goto_3
    monitor-exit v6
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_3

    .line 27
    :try_start_6
    iget-boolean v6, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->U:Z

    if-eqz v6, :cond_a

    .line 28
    iget-object v6, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->z:Ljava/lang/Object;

    monitor-enter v6
    :try_end_6
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_2
    .catchall {:try_start_6 .. :try_end_6} :catchall_4

    .line 29
    :try_start_7
    iget-object v7, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m:Lcom/estrongs/android/pop/app/editor/b;

    invoke-virtual {v7, v5}, Ljava/io/Reader;->read([C)I

    move-result v7

    if-lez v7, :cond_9

    .line 30
    iput-boolean v2, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->U:Z

    .line 31
    iget v8, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->E:I

    add-int/2addr v8, v9

    iput v8, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->E:I

    if-ne v7, v4, :cond_4

    .line 32
    iget-object v10, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->J:Lcom/estrongs/android/pop/app/editor/e;

    iget-object v11, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m:Lcom/estrongs/android/pop/app/editor/b;

    invoke-virtual {v11}, Lcom/estrongs/android/pop/app/editor/b;->getPosition()J

    move-result-wide v11

    invoke-virtual {v10, v8, v11, v12}, Lcom/estrongs/android/pop/app/editor/e;->a(IJ)V

    .line 33
    :cond_4
    invoke-static {v5}, Lcom/estrongs/android/pop/app/editor/g;->a([C)I

    move-result v8

    iput v8, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->O:I

    .line 34
    iput v8, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->P:I

    .line 35
    iget-object v8, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x:Ljava/lang/StringBuilder;

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->length()I

    move-result v8

    const/4 v10, -0x1

    if-le v8, v3, :cond_5

    .line 36
    iget-object v8, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x:Ljava/lang/StringBuilder;

    invoke-virtual {v8, v2, v4}, Ljava/lang/StringBuilder;->delete(II)Ljava/lang/StringBuilder;

    .line 37
    iget-object v8, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->T:Landroid/os/Handler;

    invoke-virtual {v8, v1}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v8

    .line 38
    new-instance v9, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$v;

    iget-object v11, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x:Ljava/lang/StringBuilder;

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-direct {v9, p0, v11, v2, v10}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$v;-><init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;Ljava/lang/String;II)V

    .line 39
    iput-object v9, v8, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 40
    iget-object v9, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->T:Landroid/os/Handler;

    invoke-virtual {v9, v8}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 41
    iget-object v8, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x:Ljava/lang/StringBuilder;

    invoke-virtual {v8, v5, v2, v7}, Ljava/lang/StringBuilder;->append([CII)Ljava/lang/StringBuilder;

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    iput-object v7, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->w:Ljava/lang/String;

    goto :goto_6

    .line 42
    :cond_5
    :goto_4
    iget-object v8, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x:Ljava/lang/StringBuilder;

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->length()I

    move-result v8

    if-ge v8, v3, :cond_7

    .line 43
    iget-object v8, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x:Ljava/lang/StringBuilder;

    invoke-virtual {v8, v5, v2, v7}, Ljava/lang/StringBuilder;->append([CII)Ljava/lang/StringBuilder;

    .line 44
    iget-object v7, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m:Lcom/estrongs/android/pop/app/editor/b;

    invoke-virtual {v7, v5}, Ljava/io/Reader;->read([C)I

    move-result v7

    if-gez v7, :cond_6

    const/4 v9, 0x0

    goto :goto_5

    .line 45
    :cond_6
    iget v8, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->E:I

    add-int/2addr v8, v9

    iput v8, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->E:I

    goto :goto_4

    :cond_7
    :goto_5
    if-eqz v9, :cond_8

    .line 46
    iget-object v8, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x:Ljava/lang/StringBuilder;

    invoke-virtual {v8, v5, v2, v7}, Ljava/lang/StringBuilder;->append([CII)Ljava/lang/StringBuilder;

    .line 47
    :cond_8
    iget-object v7, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->T:Landroid/os/Handler;

    invoke-virtual {v7, v1}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v7

    .line 48
    new-instance v8, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$v;

    iget-object v9, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x:Ljava/lang/StringBuilder;

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-direct {v8, p0, v9, v2, v10}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$v;-><init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;Ljava/lang/String;II)V

    .line 49
    iput-object v8, v7, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 50
    iget-object v8, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->T:Landroid/os/Handler;

    invoke-virtual {v8, v7}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 51
    :cond_9
    :goto_6
    monitor-exit v6

    goto :goto_7

    :catchall_0
    move-exception v3

    monitor-exit v6
    :try_end_7
    .catchall {:try_start_7 .. :try_end_7} :catchall_0

    :try_start_8
    throw v3

    .line 52
    :cond_a
    iget-boolean v6, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->V:Z

    if-eqz v6, :cond_c

    .line 53
    iget-object v6, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->z:Ljava/lang/Object;

    monitor-enter v6
    :try_end_8
    .catch Ljava/lang/Exception; {:try_start_8 .. :try_end_8} :catch_2
    .catchall {:try_start_8 .. :try_end_8} :catchall_4

    .line 54
    :try_start_9
    iget v7, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->E:I

    if-le v7, v8, :cond_b

    .line 55
    iput-boolean v2, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->V:Z

    .line 56
    iget-object v7, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m:Lcom/estrongs/android/pop/app/editor/b;

    invoke-virtual {v7}, Lcom/estrongs/android/pop/app/editor/b;->close()V

    .line 57
    new-instance v7, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$q;

    const/4 v8, 0x0

    invoke-direct {v7, p0, v8}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$q;-><init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a;)V

    invoke-virtual {v7}, Ljava/lang/Thread;->start()V

    .line 58
    :cond_b
    monitor-exit v6

    goto :goto_7

    :catchall_1
    move-exception v3

    monitor-exit v6
    :try_end_9
    .catchall {:try_start_9 .. :try_end_9} :catchall_1

    :try_start_a
    throw v3

    .line 59
    :cond_c
    :goto_7
    iget-object v6, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->y:Ljava/lang/Object;

    monitor-enter v6
    :try_end_a
    .catch Ljava/lang/Exception; {:try_start_a .. :try_end_a} :catch_2
    .catchall {:try_start_a .. :try_end_a} :catchall_4

    .line 60
    :try_start_b
    iput-boolean v2, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->B:Z

    .line 61
    iput-boolean v2, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->C:Z

    .line 62
    iget-object v7, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->y:Ljava/lang/Object;

    invoke-virtual {v7}, Ljava/lang/Object;->wait()V

    .line 63
    monitor-exit v6

    goto/16 :goto_2

    :catchall_2
    move-exception v3

    monitor-exit v6
    :try_end_b
    .catchall {:try_start_b .. :try_end_b} :catchall_2

    :try_start_c
    throw v3
    :try_end_c
    .catch Ljava/lang/Exception; {:try_start_c .. :try_end_c} :catch_2
    .catchall {:try_start_c .. :try_end_c} :catchall_4

    :catchall_3
    move-exception v3

    .line 64
    :try_start_d
    monitor-exit v6
    :try_end_d
    .catchall {:try_start_d .. :try_end_d} :catchall_3

    :try_start_e
    throw v3
    :try_end_e
    .catch Ljava/lang/Exception; {:try_start_e .. :try_end_e} :catch_2
    .catchall {:try_start_e .. :try_end_e} :catchall_4

    .line 65
    :cond_d
    :try_start_f
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m:Lcom/estrongs/android/pop/app/editor/b;

    if-eqz v0, :cond_e

    .line 66
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m:Lcom/estrongs/android/pop/app/editor/b;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/editor/b;->close()V
    :try_end_f
    .catch Ljava/io/IOException; {:try_start_f .. :try_end_f} :catch_3

    goto :goto_8

    :catchall_4
    move-exception v0

    goto :goto_9

    .line 67
    :catch_2
    :try_start_10
    iget-object v3, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->T:Landroid/os/Handler;

    invoke-virtual {v3, v0, v1, v2}, Landroid/os/Handler;->obtainMessage(III)Landroid/os/Message;

    move-result-object v0

    .line 68
    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->T:Landroid/os/Handler;

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_10
    .catchall {:try_start_10 .. :try_end_10} :catchall_4

    .line 69
    :try_start_11
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m:Lcom/estrongs/android/pop/app/editor/b;

    if-eqz v0, :cond_e

    .line 70
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m:Lcom/estrongs/android/pop/app/editor/b;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/editor/b;->close()V
    :try_end_11
    .catch Ljava/io/IOException; {:try_start_11 .. :try_end_11} :catch_3

    goto :goto_8

    :catch_3
    move-exception v0

    .line 71
    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    :cond_e
    :goto_8
    return-void

    .line 72
    :goto_9
    :try_start_12
    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m:Lcom/estrongs/android/pop/app/editor/b;

    if-eqz v1, :cond_f

    .line 73
    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m:Lcom/estrongs/android/pop/app/editor/b;

    invoke-virtual {v1}, Lcom/estrongs/android/pop/app/editor/b;->close()V
    :try_end_12
    .catch Ljava/io/IOException; {:try_start_12 .. :try_end_12} :catch_4

    goto :goto_a

    :catch_4
    move-exception v1

    .line 74
    invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V

    .line 75
    :cond_f
    :goto_a
    goto :goto_c

    :goto_b
    throw v0

    :goto_c
    goto :goto_b
.end method

.method private a(Lcom/estrongs/android/pop/app/editor/ReaderTextView;ILjava/lang/String;Ljava/lang/String;I)I
    .locals 5

    const/4 v0, 0x0

    .line 13
    :try_start_0
    invoke-virtual {p3, p4}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B

    move-result-object v1

    array-length v1, v1

    if-ne v1, p5, :cond_0

    return v0

    .line 14
    :cond_0
    invoke-virtual {p3}, Ljava/lang/String;->length()I

    move-result v1
    :try_end_0
    .catch Ljava/io/UnsupportedEncodingException; {:try_start_0 .. :try_end_0} :catch_1

    const/4 v2, 0x1

    sub-int/2addr v1, v2

    move-object v3, p3

    :goto_0
    if-lez v1, :cond_2

    .line 15
    :try_start_1
    invoke-virtual {p3, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v3

    .line 16
    invoke-virtual {v3, p4}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B

    move-result-object v4

    array-length v4, v4

    if-lt v4, p5, :cond_1

    .line 17
    invoke-virtual {p3, v0, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v3
    :try_end_1
    .catch Ljava/io/UnsupportedEncodingException; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_1

    :cond_1
    add-int/lit8 v1, v1, -0x1e

    goto :goto_0

    :catch_0
    move-exception p3

    goto :goto_2

    :cond_2
    const/4 v2, 0x0

    :goto_1
    if-nez v2, :cond_3

    return v0

    :catch_1
    move-exception p4

    move-object v3, p3

    move-object p3, p4

    .line 18
    :goto_2
    invoke-virtual {p3}, Ljava/io/UnsupportedEncodingException;->printStackTrace()V

    .line 19
    :cond_3
    invoke-direct {p0, p1, v3}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->a(Lcom/estrongs/android/pop/app/editor/ReaderTextView;Ljava/lang/String;)Landroid/text/Layout;

    move-result-object p1

    .line 20
    invoke-virtual {p1}, Landroid/text/Layout;->getHeight()I

    move-result p1

    sub-int/2addr p1, p2

    if-lez p1, :cond_4

    move v0, p1

    :cond_4
    return v0
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;I)I
    .locals 0

    .line 3
    iput p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->P:I

    return p1
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;Lcom/estrongs/android/pop/app/editor/ReaderTextView;ILjava/lang/String;Ljava/lang/String;I)I
    .locals 0

    .line 9
    invoke-direct/range {p0 .. p5}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->a(Lcom/estrongs/android/pop/app/editor/ReaderTextView;ILjava/lang/String;Ljava/lang/String;I)I

    move-result p0

    return p0
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;Lcom/estrongs/android/pop/app/editor/ReaderTextView;Ljava/lang/String;)I
    .locals 0

    .line 7
    invoke-direct {p0, p1, p2}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->b(Lcom/estrongs/android/pop/app/editor/ReaderTextView;Ljava/lang/String;)I

    move-result p0

    return p0
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;J)J
    .locals 0

    .line 8
    iput-wide p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->H:J

    return-wide p1
.end method

.method private a(Lcom/estrongs/android/pop/app/editor/ReaderTextView;Ljava/lang/String;)Landroid/text/Layout;
    .locals 9
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    .line 10
    new-instance v8, Landroid/text/StaticLayout;

    invoke-virtual {p1}, Landroid/widget/TextView;->getPaint()Landroid/text/TextPaint;

    move-result-object v2

    .line 11
    invoke-virtual {p1}, Landroid/widget/TextView;->getWidth()I

    move-result v0

    invoke-virtual {p1}, Landroid/widget/TextView;->getPaddingLeft()I

    move-result v1

    sub-int/2addr v0, v1

    invoke-virtual {p1}, Landroid/widget/TextView;->getPaddingRight()I

    move-result v1

    sub-int v3, v0, v1

    sget-object v4, Landroid/text/Layout$Alignment;->ALIGN_NORMAL:Landroid/text/Layout$Alignment;

    .line 12
    invoke-virtual {p1}, Lcom/estrongs/android/pop/app/editor/ReaderTextView;->getLineSpacingMult()F

    move-result v5

    invoke-virtual {p1}, Lcom/estrongs/android/pop/app/editor/ReaderTextView;->getLineSpacingAdd()F

    move-result v6

    invoke-virtual {p1}, Lcom/estrongs/android/pop/app/editor/ReaderTextView;->getIncludeFontPadding()Z

    move-result v7

    move-object v0, v8

    move-object v1, p2

    invoke-direct/range {v0 .. v7}, Landroid/text/StaticLayout;-><init>(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFZ)V

    return-object v8
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/ReaderTextView;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->n:Lcom/estrongs/android/pop/app/editor/ReaderTextView;

    return-object p0
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;)Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;
    .locals 0

    .line 6
    iput-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->R:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;

    return-object p1
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;Lcom/estrongs/android/pop/app/editor/b;)Lcom/estrongs/android/pop/app/editor/b;
    .locals 0

    .line 5
    iput-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m:Lcom/estrongs/android/pop/app/editor/b;

    return-object p1
.end method

.method private a(Lcom/estrongs/android/pop/app/editor/ReaderTextView;IILjava/lang/String;I)Ljava/lang/String;
    .locals 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/IllegalStateException;
        }
    .end annotation

    .line 37
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->I:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;

    iget-boolean v0, v0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;->b:Z

    if-eqz v0, :cond_3

    if-gt p2, p3, :cond_2

    add-int v0, p2, p3

    .line 38
    div-int/lit8 v0, v0, 0x2

    .line 39
    invoke-virtual {p4, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v1

    invoke-direct {p0, p1, v1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->a(Lcom/estrongs/android/pop/app/editor/ReaderTextView;Ljava/lang/String;)Landroid/text/Layout;

    move-result-object v1

    .line 40
    invoke-virtual {v1}, Landroid/text/Layout;->getLineCount()I

    move-result v1

    if-ne v1, p5, :cond_0

    .line 41
    invoke-virtual {p4, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object p1

    return-object p1

    :cond_0
    if-ge v1, p5, :cond_1

    add-int/lit8 v3, v0, -0x1

    move-object v0, p0

    move-object v1, p1

    move v2, p2

    move-object v4, p4

    move v5, p5

    .line 42
    invoke-direct/range {v0 .. v5}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->a(Lcom/estrongs/android/pop/app/editor/ReaderTextView;IILjava/lang/String;I)Ljava/lang/String;

    move-result-object p1

    return-object p1

    :cond_1
    add-int/lit8 v2, v0, 0x1

    move-object v0, p0

    move-object v1, p1

    move v3, p3

    move-object v4, p4

    move v5, p5

    .line 43
    invoke-direct/range {v0 .. v5}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->a(Lcom/estrongs/android/pop/app/editor/ReaderTextView;IILjava/lang/String;I)Ljava/lang/String;

    move-result-object p1

    return-object p1

    .line 44
    :cond_2
    sget-object p1, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->X:Ljava/lang/String;

    new-instance p4, Ljava/lang/StringBuilder;

    invoke-direct {p4}, Ljava/lang/StringBuilder;-><init>()V

    const-string p5, "getFixSubString error not found low "

    invoke-virtual {p4, p5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p4, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string p2, ", high "

    invoke-virtual {p4, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p4, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {p4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-static {p1, p2}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    const/4 p1, 0x0

    return-object p1

    .line 45
    :cond_3
    new-instance p1, Ljava/lang/IllegalStateException;

    invoke-direct {p1}, Ljava/lang/IllegalStateException;-><init>()V

    throw p1
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    .line 4
    iput-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->j:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;Z)V
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->f(Z)V

    return-void
.end method

.method private b(Lcom/estrongs/android/pop/app/editor/ReaderTextView;Ljava/lang/String;)I
    .locals 2

    const/4 v0, 0x0

    const/16 v1, 0x1000

    .line 5
    invoke-virtual {p2, v0, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object p2

    .line 6
    invoke-direct {p0, p1, p2}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->a(Lcom/estrongs/android/pop/app/editor/ReaderTextView;Ljava/lang/String;)Landroid/text/Layout;

    move-result-object p1

    .line 7
    invoke-virtual {p1}, Landroid/text/Layout;->getHeight()I

    move-result p2

    invoke-virtual {p1}, Landroid/text/Layout;->getBottomPadding()I

    move-result v1

    sub-int/2addr p2, v1

    invoke-virtual {p1, v0}, Landroid/text/Layout;->getLineBaseline(I)I

    move-result p1

    sub-int/2addr p2, p1

    return p2
.end method

.method static synthetic b(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;I)I
    .locals 0

    .line 2
    iput p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->O:I

    return p1
.end method

.method static synthetic b(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/ObservableScrollView;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->q:Lcom/estrongs/android/pop/app/editor/ObservableScrollView;

    return-object p0
.end method

.method static synthetic b(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    .line 3
    iput-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->k:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic b(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;Z)V
    .locals 0

    .line 4
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->g(Z)V

    return-void
.end method

.method static synthetic c(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;I)I
    .locals 0

    .line 2
    iput p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->E:I

    return p1
.end method

.method static synthetic c(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/content/Context;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->l:Landroid/content/Context;

    return-object p0
.end method

.method static synthetic c(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    .line 3
    iput-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->w:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic d(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/widget/LinearLayout;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->r:Landroid/widget/LinearLayout;

    return-object p0
.end method

.method static synthetic d(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;I)V
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->h(I)V

    return-void
.end method

.method static synthetic e(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;I)I
    .locals 0

    .line 2
    iput p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->L:I

    return p1
.end method

.method static synthetic e(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->L()V

    return-void
.end method

.method static synthetic f(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->N()V

    return-void
.end method

.method private f(Z)V
    .locals 3

    .line 2
    iget v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->K:I

    if-eqz v0, :cond_0

    return-void

    .line 3
    :cond_0
    iget-boolean v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->M:Z

    const/4 v1, 0x1

    const/4 v2, 0x0

    if-nez v0, :cond_1

    if-eqz p1, :cond_1

    .line 4
    iget-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->r:Landroid/widget/LinearLayout;

    const/16 v0, 0x8

    invoke-virtual {p1, v0}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 5
    iput-boolean v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->M:Z

    goto :goto_0

    .line 6
    :cond_1
    iget-boolean v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->M:Z

    if-eqz v0, :cond_2

    if-nez p1, :cond_2

    .line 7
    iget-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->r:Landroid/widget/LinearLayout;

    invoke-virtual {p1, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 8
    iput-boolean v2, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->M:Z

    goto :goto_0

    :cond_2
    const/4 v1, 0x0

    :goto_0
    if-eqz v1, :cond_3

    .line 9
    new-instance p1, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$v;

    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x:Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->q:Lcom/estrongs/android/pop/app/editor/ObservableScrollView;

    invoke-virtual {v1}, Landroid/widget/ScrollView;->getScrollY()I

    move-result v1

    invoke-direct {p1, p0, v0, v2, v1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$v;-><init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;Ljava/lang/String;II)V

    .line 10
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->T:Landroid/os/Handler;

    invoke-virtual {v0, v2}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v0

    .line 11
    iput-object p1, v0, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 12
    iget-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->T:Landroid/os/Handler;

    invoke-virtual {p1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    :cond_3
    return-void
.end method

.method static synthetic g(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->P:I

    return p0
.end method

.method private g(Z)V
    .locals 3

    .line 2
    iget v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->K:I

    if-nez v0, :cond_0

    return-void

    .line 3
    :cond_0
    invoke-virtual {p0}, Landroidx/appcompat/app/AppCompatActivity;->invalidateOptionsMenu()V

    const/4 v0, 0x0

    :try_start_0
    const-string v1, "input_method"

    .line 4
    invoke-virtual {p0, v1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/view/inputmethod/InputMethodManager;

    .line 5
    invoke-virtual {v1}, Landroid/view/inputmethod/InputMethodManager;->isActive()Z

    move-result v2

    if-eqz v2, :cond_1

    .line 6
    iget-object v2, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->o:Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getWindowToken()Landroid/os/IBinder;

    move-result-object v2

    invoke-virtual {v1, v2, v0}, Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromWindow(Landroid/os/IBinder;I)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v1

    .line 7
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    .line 8
    :cond_1
    :goto_0
    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->n:Lcom/estrongs/android/pop/app/editor/ReaderTextView;

    invoke-virtual {v1}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v1

    invoke-interface {v1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->o:Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    iget v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->O:I

    iget v2, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->P:I

    if-eq v1, v2, :cond_3

    :cond_2
    if-eqz p1, :cond_4

    .line 9
    :cond_3
    iput v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->K:I

    .line 10
    iget-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->o:Landroid/widget/EditText;

    const-string v1, ""

    invoke-virtual {p1, v1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 11
    iget-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->r:Landroid/widget/LinearLayout;

    invoke-virtual {p1, v0}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 12
    iget-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->q:Lcom/estrongs/android/pop/app/editor/ObservableScrollView;

    invoke-virtual {p1, v0}, Landroid/widget/ScrollView;->setVisibility(I)V

    .line 13
    iget-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->p:Lcom/estrongs/android/pop/app/editor/ObservableScrollView;

    const/16 v0, 0x8

    invoke-virtual {p1, v0}, Landroid/widget/ScrollView;->setVisibility(I)V

    .line 14
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->F()V

    return-void

    :cond_4
    const/4 p1, 0x4

    .line 15
    invoke-virtual {p0, p1}, Landroid/app/Activity;->showDialog(I)V

    return-void
.end method

.method static synthetic h(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Ljava/lang/String;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->j:Ljava/lang/String;

    return-object p0
.end method

.method private h(I)V
    .locals 2

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->o:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->requestFocus()Z

    if-lez p1, :cond_0

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->o:Landroid/widget/EditText;

    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setSelection(I)V

    :cond_0
    const-string p1, "input_method"

    .line 4
    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Landroid/view/inputmethod/InputMethodManager;

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->o:Landroid/widget/EditText;

    const/4 v1, 0x0

    invoke-virtual {p1, v0, v1}, Landroid/view/inputmethod/InputMethodManager;->showSoftInput(Landroid/view/View;I)Z

    return-void
.end method

.method static synthetic i(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/widget/SeekBar;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->t:Landroid/widget/SeekBar;

    return-object p0
.end method

.method private i(I)V
    .locals 2

    .line 2
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x:Ljava/lang/StringBuilder;

    .line 3
    new-instance v0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$t;

    const/4 v1, 0x0

    invoke-direct {v0, p0, p1, v1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$t;-><init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;IZ)V

    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    return-void
.end method

.method static synthetic j(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->s()V

    return-void
.end method

.method static synthetic k(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/c;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->N:Lcom/estrongs/android/pop/app/editor/c;

    return-object p0
.end method

.method static synthetic l(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/widget/EditText;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->o:Landroid/widget/EditText;

    return-object p0
.end method

.method static synthetic m(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/b;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m:Lcom/estrongs/android/pop/app/editor/b;

    return-object p0
.end method

.method static synthetic n(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->O:I

    return p0
.end method

.method static synthetic o(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->R:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;

    return-object p0
.end method

.method static synthetic p(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->O()V

    return-void
.end method

.method static synthetic q(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Ljava/lang/Object;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->z:Ljava/lang/Object;

    return-object p0
.end method

.method static synthetic r(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Ljava/lang/StringBuilder;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x:Ljava/lang/StringBuilder;

    return-object p0
.end method

.method static synthetic s(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Ljava/io/File;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->G:Ljava/io/File;

    return-object p0
.end method

.method private s()V
    .locals 4

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->T:Landroid/os/Handler;

    const/4 v1, 0x6

    invoke-virtual {v0, v1}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v0

    .line 3
    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->T:Landroid/os/Handler;

    const-wide/16 v2, 0x1f4

    invoke-virtual {v1, v0, v2, v3}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z

    return-void
.end method

.method static synthetic t(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->E:I

    return p0
.end method

.method static synthetic u(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)I
    .locals 2

    .line 1
    iget v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->E:I

    add-int/lit8 v1, v0, 0x1

    iput v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->E:I

    return v0
.end method

.method static synthetic v(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)I
    .locals 2

    .line 1
    iget v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->E:I

    add-int/lit8 v1, v0, -0x1

    iput v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->E:I

    return v0
.end method

.method static synthetic w(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/e;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->J:Lcom/estrongs/android/pop/app/editor/e;

    return-object p0
.end method

.method static synthetic x(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/os/Handler;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->T:Landroid/os/Handler;

    return-object p0
.end method

.method static synthetic y(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->H()V

    return-void
.end method

.method static synthetic z(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)J
    .locals 2

    .line 1
    iget-wide v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->H:J

    return-wide v0
.end method


# virtual methods
.method protected D()Z
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

.method protected F()V
    .locals 4

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->T:Landroid/os/Handler;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->W:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->T:Landroid/os/Handler;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->W:Ljava/lang/Runnable;

    const-wide/16 v2, 0xbb8

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    return-void
.end method

.method public a(I)V
    .locals 4

    .line 21
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->q:Lcom/estrongs/android/pop/app/editor/ObservableScrollView;

    invoke-virtual {v0}, Landroid/widget/ScrollView;->getHeight()I

    move-result v0

    sub-int/2addr p1, v0

    iput p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->D:I

    .line 22
    iget-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->w:Ljava/lang/String;

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p1

    if-nez p1, :cond_0

    .line 23
    iget-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->T:Landroid/os/Handler;

    const/4 v0, 0x2

    invoke-virtual {p1, v0}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object p1

    .line 24
    new-instance v0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$v;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->w:Ljava/lang/String;

    const/4 v2, 0x0

    const/4 v3, -0x1

    invoke-direct {v0, p0, v1, v2, v3}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$v;-><init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;Ljava/lang/String;II)V

    .line 25
    iput-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 26
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->T:Landroid/os/Handler;

    invoke-virtual {v0, p1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    const/4 p1, 0x0

    .line 27
    iput-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->w:Ljava/lang/String;

    :cond_0
    return-void
.end method

.method public a(Lcom/estrongs/android/pop/app/editor/ObservableScrollView;IIII)V
    .locals 0

    .line 28
    iget-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->y:Ljava/lang/Object;

    monitor-enter p1

    .line 29
    :try_start_0
    iget p2, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->D:I

    const/4 p4, 0x1

    if-ne p2, p3, :cond_0

    if-eq p5, p3, :cond_0

    .line 30
    iput-boolean p4, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->B:Z

    :cond_0
    if-nez p3, :cond_1

    if-eq p3, p5, :cond_1

    .line 31
    iput-boolean p4, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->C:Z

    .line 32
    :cond_1
    iget-object p2, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->y:Ljava/lang/Object;

    invoke-virtual {p2}, Ljava/lang/Object;->notifyAll()V

    .line 33
    monitor-exit p1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 34
    iget-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->I:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;

    if-eqz p1, :cond_2

    .line 35
    invoke-virtual {p1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;->a()V

    :cond_2
    return-void

    :catchall_0
    move-exception p2

    .line 36
    :try_start_1
    monitor-exit p1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw p2
.end method

.method public d()V
    .locals 2

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->I:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;

    if-nez v0, :cond_0

    .line 4
    new-instance v0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;-><init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->I:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;

    .line 5
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->I:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Ljava/lang/Thread;->setPriority(I)V

    goto :goto_0

    .line 7
    :cond_0
    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;->b()V

    :goto_0
    return-void
.end method

.method public finish()V
    .locals 2

    const/4 v0, 0x1

    .line 1
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->A:Z

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->I:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$r;->b()V

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->y:Ljava/lang/Object;

    monitor-enter v0

    .line 5
    :try_start_0
    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->y:Ljava/lang/Object;

    invoke-virtual {v1}, Ljava/lang/Object;->notify()V

    .line 6
    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 7
    invoke-super {p0}, Landroid/app/Activity;->finish()V

    return-void

    :catchall_0
    move-exception v1

    .line 8
    :try_start_1
    monitor-exit v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw v1
.end method

.method public onBackPressed()V
    .locals 2

    .line 1
    iget v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->K:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_1

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->R:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$s;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    .line 3
    invoke-direct {p0, v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->g(Z)V

    :cond_0
    return-void

    .line 4
    :cond_1
    invoke-super {p0}, Landroidx/activity/ComponentActivity;->onBackPressed()V

    return-void
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 4
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    .line 1
    invoke-super {p0, p1}, Lcom/estrongs/android/ui/base/HomeAsBackActivity;->onCreate(Landroid/os/Bundle;)V

    const p1, 0x7f0c029f

    .line 2
    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/base/HomeAsBackActivity;->setContentView(I)V

    .line 3
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    invoke-virtual {p1}, Landroid/content/Intent;->getData()Landroid/net/Uri;

    move-result-object p1

    .line 4
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->Q:Lcom/estrongs/android/statistics/b;

    .line 5
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const/4 v1, 0x0

    const-string v2, "islocalopen"

    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    if-nez v0, :cond_0

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->Q:Lcom/estrongs/android/statistics/b;

    const-string v2, "act3"

    const-string v3, "note_editor"

    invoke-virtual {v0, v2, v3}, Lcom/estrongs/android/statistics/b;->b(Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    if-eqz p1, :cond_3

    .line 7
    invoke-virtual {p1}, Landroid/net/Uri;->toString()Ljava/lang/String;

    move-result-object v0

    if-nez v0, :cond_1

    goto/16 :goto_1

    .line 8
    :cond_1
    iput-object p0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->l:Landroid/content/Context;

    .line 9
    new-instance v0, Lcom/estrongs/android/pop/app/editor/c;

    invoke-direct {v0, p0, p1}, Lcom/estrongs/android/pop/app/editor/c;-><init>(Landroid/app/Activity;Landroid/net/Uri;)V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->N:Lcom/estrongs/android/pop/app/editor/c;

    const p1, 0x7f090b6d

    .line 10
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/estrongs/android/pop/app/editor/ObservableScrollView;

    iput-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->q:Lcom/estrongs/android/pop/app/editor/ObservableScrollView;

    .line 11
    invoke-virtual {p1, p0}, Lcom/estrongs/android/pop/app/editor/ObservableScrollView;->setScrollViewListener(Lcom/estrongs/android/pop/app/editor/ObservableScrollView$b;)V

    const p1, 0x7f090b6c

    .line 12
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/estrongs/android/pop/app/editor/ReaderTextView;

    iput-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->n:Lcom/estrongs/android/pop/app/editor/ReaderTextView;

    .line 13
    invoke-virtual {p1, p0}, Lcom/estrongs/android/pop/app/editor/ReaderTextView;->setOnPreDrawListener(Lcom/estrongs/android/pop/app/editor/ReaderTextView$a;)V

    const p1, 0x7f090b5e

    .line 14
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/EditText;

    iput-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->o:Landroid/widget/EditText;

    const p1, 0x7f090b5f

    .line 15
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/estrongs/android/pop/app/editor/ObservableScrollView;

    iput-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->p:Lcom/estrongs/android/pop/app/editor/ObservableScrollView;

    .line 16
    new-instance v0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$i;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$i;-><init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V

    invoke-virtual {p1, v0}, Landroid/widget/ScrollView;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    const p1, 0x7f090937

    .line 17
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/LinearLayout;

    iput-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->r:Landroid/widget/LinearLayout;

    const p1, 0x7f090935

    .line 18
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/LinearLayout;

    iput-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->s:Landroid/widget/LinearLayout;

    const p1, 0x7f090931

    .line 19
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/SeekBar;

    iput-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->t:Landroid/widget/SeekBar;

    .line 20
    invoke-virtual {p1, p0}, Landroid/widget/SeekBar;->setOnSeekBarChangeListener(Landroid/widget/SeekBar$OnSeekBarChangeListener;)V

    .line 21
    iget-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->t:Landroid/widget/SeekBar;

    new-instance v0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$j;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$j;-><init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V

    invoke-virtual {p1, v0}, Landroid/widget/SeekBar;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    const p1, 0x7f09093b

    .line 22
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->u:Landroid/widget/TextView;

    .line 23
    new-instance p1, Lcom/estrongs/android/pop/app/editor/e;

    invoke-direct {p1}, Lcom/estrongs/android/pop/app/editor/e;-><init>()V

    iput-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->J:Lcom/estrongs/android/pop/app/editor/e;

    .line 24
    iget-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->N:Lcom/estrongs/android/pop/app/editor/c;

    invoke-virtual {p1}, Lcom/estrongs/android/pop/app/editor/c;->f()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p0, p1}, Landroid/app/Activity;->setTitle(Ljava/lang/CharSequence;)V

    .line 25
    new-instance p1, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$u;

    const/4 v0, 0x0

    invoke-direct {p1, p0, v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$u;-><init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a;)V

    .line 26
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v2, 0xb

    if-lt v0, v2, :cond_2

    .line 27
    sget-object v0, Landroid/os/AsyncTask;->THREAD_POOL_EXECUTOR:Ljava/util/concurrent/Executor;

    new-array v1, v1, [Ljava/lang/Object;

    invoke-virtual {p1, v0, v1}, Landroid/os/AsyncTask;->executeOnExecutor(Ljava/util/concurrent/Executor;[Ljava/lang/Object;)Landroid/os/AsyncTask;

    goto :goto_0

    :cond_2
    new-array v0, v1, [Ljava/lang/Object;

    .line 28
    invoke-virtual {p1, v0}, Landroid/os/AsyncTask;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    .line 29
    :goto_0
    iget-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->q:Lcom/estrongs/android/pop/app/editor/ObservableScrollView;

    new-instance v0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$k;

    invoke-direct {p0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->K()Landroid/view/View$OnTouchListener;

    move-result-object v1

    invoke-direct {v0, p0, v1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$k;-><init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;Landroid/view/View$OnTouchListener;)V

    invoke-virtual {p1, v0}, Landroid/widget/ScrollView;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 30
    iget-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->n:Lcom/estrongs/android/pop/app/editor/ReaderTextView;

    new-instance v0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$l;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$l;-><init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 31
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->F()V

    return-void

    .line 32
    :cond_3
    :goto_1
    iput-boolean v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->S:Z

    return-void
.end method

.method protected onCreateDialog(I)Landroid/app/Dialog;
    .locals 7

    const-string v0, "\n"

    const v1, 0x7f11065d

    const/4 v2, 0x1

    const v3, 0x7f11029e

    if-eq p1, v2, :cond_9

    const/4 v4, 0x2

    const-string v5, " "

    if-eq p1, v4, :cond_7

    const/4 v0, 0x3

    const v1, 0x7f11029d

    const v4, 0x7f1102a2

    if-eq p1, v0, :cond_2

    const/4 v0, 0x4

    const v2, 0x7f11065a

    if-eq p1, v0, :cond_1

    const/4 v0, 0x5

    if-eq p1, v0, :cond_0

    const/4 p1, 0x0

    return-object p1

    .line 1
    :cond_0
    new-instance p1, Lcom/estrongs/android/ui/dialog/q$n;

    invoke-direct {p1, p0}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    .line 2
    invoke-virtual {p1, v2}, Lcom/estrongs/android/ui/dialog/q$n;->b(I)Lcom/estrongs/android/ui/dialog/q$n;

    const v0, 0x7f110733

    .line 3
    invoke-virtual {p1, v0}, Lcom/estrongs/android/ui/dialog/q$n;->a(I)Lcom/estrongs/android/ui/dialog/q$n;

    new-instance v0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$g;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$g;-><init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V

    .line 4
    invoke-virtual {p1, v3, v0}, Lcom/estrongs/android/ui/dialog/q$n;->f(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 5
    invoke-virtual {p1}, Lcom/estrongs/android/ui/dialog/q$n;->a()Lcom/estrongs/android/ui/dialog/q;

    move-result-object p1

    return-object p1

    .line 6
    :cond_1
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    const v0, 0x7f110731

    invoke-virtual {p0, v0}, Landroid/app/Activity;->getText(I)Ljava/lang/CharSequence;

    move-result-object v0

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->N:Lcom/estrongs/android/pop/app/editor/c;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/editor/c;->f()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v0, "?"

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 7
    new-instance v0, Lcom/estrongs/android/ui/dialog/q$n;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    .line 8
    invoke-virtual {v0, v2}, Lcom/estrongs/android/ui/dialog/q$n;->b(I)Lcom/estrongs/android/ui/dialog/q$n;

    .line 9
    invoke-virtual {v0, p1}, Lcom/estrongs/android/ui/dialog/q$n;->a(Ljava/lang/CharSequence;)Lcom/estrongs/android/ui/dialog/q$n;

    new-instance p1, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$f;

    invoke-direct {p1, p0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$f;-><init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V

    .line 10
    invoke-virtual {v0, v4, p1}, Lcom/estrongs/android/ui/dialog/q$n;->b(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    new-instance p1, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$e;

    invoke-direct {p1, p0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$e;-><init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V

    .line 11
    invoke-virtual {v0, v1, p1}, Lcom/estrongs/android/ui/dialog/q$n;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 12
    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q$n;->a()Lcom/estrongs/android/ui/dialog/q;

    move-result-object p1

    return-object p1

    .line 13
    :cond_2
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/pop/l;->K0()Z

    move-result p1

    const/4 v0, 0x0

    if-eqz p1, :cond_4

    .line 14
    iget-object v3, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->N:Lcom/estrongs/android/pop/app/editor/c;

    invoke-virtual {v3}, Lcom/estrongs/android/pop/app/editor/c;->h()Ljava/lang/String;

    move-result-object v3

    const-string v6, "file:///"

    .line 15
    invoke-virtual {v3, v6}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_3

    .line 16
    invoke-static {v3}, Landroid/net/Uri;->decode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 17
    :cond_3
    invoke-static {v3}, Lcom/estrongs/android/pop/utils/s;->b(Ljava/lang/String;)I

    move-result v3

    sget v6, Lcom/estrongs/android/pop/utils/s;->c:I

    if-eq v3, v6, :cond_4

    const/4 p1, 0x0

    :cond_4
    if-eqz p1, :cond_5

    const v3, 0x7f110060

    goto :goto_0

    :cond_5
    const v3, 0x7f11003f

    :goto_0
    if-nez p1, :cond_6

    .line 18
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const v2, 0x7f110730

    invoke-virtual {p0, v2}, Landroid/app/Activity;->getText(I)Ljava/lang/CharSequence;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v2, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->N:Lcom/estrongs/android/pop/app/editor/c;

    invoke-virtual {v2}, Lcom/estrongs/android/pop/app/editor/c;->f()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_1

    :cond_6
    const v5, 0x7f110938

    .line 19
    invoke-virtual {p0, v5}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v5

    new-array v2, v2, [Ljava/lang/Object;

    iget-object v6, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->N:Lcom/estrongs/android/pop/app/editor/c;

    invoke-virtual {v6}, Lcom/estrongs/android/pop/app/editor/c;->f()Ljava/lang/String;

    move-result-object v6

    aput-object v6, v2, v0

    invoke-static {v5, v2}, Ljava/text/MessageFormat;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    .line 20
    :goto_1
    new-instance v2, Lcom/estrongs/android/ui/dialog/q$n;

    invoke-direct {v2, p0}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    .line 21
    invoke-virtual {v2, v3}, Lcom/estrongs/android/ui/dialog/q$n;->b(I)Lcom/estrongs/android/ui/dialog/q$n;

    .line 22
    invoke-virtual {v2, v0}, Lcom/estrongs/android/ui/dialog/q$n;->a(Ljava/lang/CharSequence;)Lcom/estrongs/android/ui/dialog/q$n;

    new-instance v0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$c;

    invoke-direct {v0, p0, p1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$c;-><init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;Z)V

    .line 23
    invoke-virtual {v2, v4, v0}, Lcom/estrongs/android/ui/dialog/q$n;->b(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    new-instance p1, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$b;

    invoke-direct {p1, p0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$b;-><init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V

    .line 24
    invoke-virtual {v2, v1, p1}, Lcom/estrongs/android/ui/dialog/q$n;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 25
    invoke-virtual {v2}, Lcom/estrongs/android/ui/dialog/q$n;->a()Lcom/estrongs/android/ui/dialog/q;

    move-result-object p1

    return-object p1

    .line 26
    :cond_7
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    const v2, 0x7f110734

    invoke-virtual {p0, v2}, Landroid/app/Activity;->getText(I)Ljava/lang/CharSequence;

    move-result-object v2

    invoke-virtual {p1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v2, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->N:Lcom/estrongs/android/pop/app/editor/c;

    invoke-virtual {v2}, Lcom/estrongs/android/pop/app/editor/c;->f()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 27
    iget-object v2, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->k:Ljava/lang/String;

    if-eqz v2, :cond_8

    .line 28
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->k:Ljava/lang/String;

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 29
    :cond_8
    new-instance v0, Lcom/estrongs/android/ui/dialog/q$n;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    .line 30
    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/dialog/q$n;->b(I)Lcom/estrongs/android/ui/dialog/q$n;

    .line 31
    invoke-virtual {v0, p1}, Lcom/estrongs/android/ui/dialog/q$n;->a(Ljava/lang/CharSequence;)Lcom/estrongs/android/ui/dialog/q$n;

    new-instance p1, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$d;

    invoke-direct {p1, p0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$d;-><init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V

    .line 32
    invoke-virtual {v0, v3, p1}, Lcom/estrongs/android/ui/dialog/q$n;->f(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 33
    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q$n;->a()Lcom/estrongs/android/ui/dialog/q;

    move-result-object p1

    return-object p1

    .line 34
    :cond_9
    new-instance p1, Lcom/estrongs/android/ui/dialog/q$n;

    invoke-direct {p1, p0}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    .line 35
    invoke-virtual {p1, v1}, Lcom/estrongs/android/ui/dialog/q$n;->b(I)Lcom/estrongs/android/ui/dialog/q$n;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const v2, 0x7f110735

    .line 36
    invoke-virtual {p0, v2}, Landroid/app/Activity;->getText(I)Ljava/lang/CharSequence;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->k:Ljava/lang/String;

    if-nez v0, :cond_a

    const-string v0, ""

    :cond_a
    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 37
    invoke-virtual {p1, v0}, Lcom/estrongs/android/ui/dialog/q$n;->a(Ljava/lang/CharSequence;)Lcom/estrongs/android/ui/dialog/q$n;

    new-instance v0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$p;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$p;-><init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V

    .line 38
    invoke-virtual {p1, v3, v0}, Lcom/estrongs/android/ui/dialog/q$n;->f(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 39
    invoke-virtual {p1}, Lcom/estrongs/android/ui/dialog/q$n;->a()Lcom/estrongs/android/ui/dialog/q;

    move-result-object p1

    return-object p1
.end method

.method public onCreateOptionsMenu(Landroid/view/Menu;)Z
    .locals 3

    .line 1
    invoke-virtual {p0}, Landroidx/appcompat/app/AppCompatActivity;->getMenuInflater()Landroid/view/MenuInflater;

    move-result-object v0

    const v1, 0x7f0d0004

    invoke-virtual {v0, v1, p1}, Landroid/view/MenuInflater;->inflate(ILandroid/view/Menu;)V

    const v0, 0x7f09077e

    .line 2
    invoke-interface {p1, v0}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v0

    const v1, 0x7f110042

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setTitle(I)Landroid/view/MenuItem;

    const v0, 0x7f09077d

    .line 3
    invoke-interface {p1, v0}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v0

    const v1, 0x7f11003f

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setTitle(I)Landroid/view/MenuItem;

    const v0, 0x7f09077c

    .line 4
    invoke-interface {p1, v0}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v0

    const v1, 0x7f110474

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setTitle(I)Landroid/view/MenuItem;

    const v0, 0x7f09077f

    .line 5
    invoke-interface {p1, v0}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v1

    const v2, 0x7f110aba

    invoke-interface {v1, v2}, Landroid/view/MenuItem;->setTitle(I)Landroid/view/MenuItem;

    .line 6
    invoke-interface {p1, v0}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v0

    .line 7
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v1

    const v2, 0x7f080999

    invoke-virtual {v1, v2}, Lcom/estrongs/android/ui/theme/b;->g(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(Landroid/graphics/drawable/Drawable;)Landroid/view/MenuItem;

    .line 8
    invoke-super {p0, p1}, Lcom/estrongs/android/ui/base/HomeAsBackActivity;->onCreateOptionsMenu(Landroid/view/Menu;)Z

    move-result p1

    return p1
.end method

.method public onDestroy()V
    .locals 1

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onDestroy()V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->N:Lcom/estrongs/android/pop/app/editor/c;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/editor/c;->a()V

    :cond_0
    return-void
.end method

.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
    .locals 4

    .line 1
    invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I

    move-result v0

    const v1, 0x102002c

    const/4 v2, 0x0

    const/4 v3, 0x1

    if-eq v0, v1, :cond_0

    packed-switch v0, :pswitch_data_0

    goto :goto_0

    .line 2
    :pswitch_0
    new-instance p1, Lcom/estrongs/android/pop/app/editor/g;

    iget v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->P:I

    new-instance v1, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$m;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$m;-><init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V

    invoke-direct {p1, p0, v0, v1}, Lcom/estrongs/android/pop/app/editor/g;-><init>(Landroid/content/Context;ILcom/estrongs/android/pop/app/editor/g$d;)V

    .line 3
    invoke-virtual {p1}, Lcom/estrongs/android/pop/app/editor/g;->a()V

    return v3

    .line 4
    :pswitch_1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->I()V

    return v3

    .line 5
    :pswitch_2
    iget-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->T:Landroid/os/Handler;

    const/4 v0, 0x5

    const/4 v1, 0x3

    invoke-virtual {p1, v0, v1, v2}, Landroid/os/Handler;->obtainMessage(III)Landroid/os/Message;

    move-result-object p1

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->T:Landroid/os/Handler;

    invoke-virtual {v0, p1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    return v3

    .line 7
    :pswitch_3
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->M()V

    return v3

    .line 8
    :cond_0
    iget v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->K:I

    if-ne v0, v3, :cond_1

    .line 9
    invoke-direct {p0, v2}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->g(Z)V

    return v3

    .line 10
    :cond_1
    :goto_0
    invoke-super {p0, p1}, Lcom/estrongs/android/ui/base/HomeAsBackActivity;->onOptionsItemSelected(Landroid/view/MenuItem;)Z

    move-result p1

    return p1

    :pswitch_data_0
    .packed-switch 0x7f09077c
        :pswitch_3
        :pswitch_2
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method protected onPause()V
    .locals 0

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onPause()V

    return-void
.end method

.method public onPrepareOptionsMenu(Landroid/view/Menu;)Z
    .locals 5

    .line 1
    iget v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->K:I

    const v1, 0x7f090786

    const/4 v2, 0x0

    const v3, 0x7f09077f

    const/4 v4, 0x1

    if-ne v0, v4, :cond_0

    .line 2
    invoke-interface {p1, v3}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v0

    invoke-interface {v0, v4}, Landroid/view/MenuItem;->setVisible(Z)Landroid/view/MenuItem;

    .line 3
    invoke-interface {p1, v1}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v0

    invoke-interface {v0, v2}, Landroid/view/MenuItem;->setVisible(Z)Landroid/view/MenuItem;

    goto :goto_0

    .line 4
    :cond_0
    invoke-interface {p1, v3}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v0

    invoke-interface {v0, v2}, Landroid/view/MenuItem;->setVisible(Z)Landroid/view/MenuItem;

    .line 5
    invoke-interface {p1, v1}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v0

    iget-boolean v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->S:Z

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setVisible(Z)Landroid/view/MenuItem;

    .line 6
    :goto_0
    invoke-super {p0, p1}, Landroid/app/Activity;->onPrepareOptionsMenu(Landroid/view/Menu;)Z

    move-result p1

    return p1
.end method

.method public onProgressChanged(Landroid/widget/SeekBar;IZ)V
    .locals 1

    .line 1
    iget-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->u:Landroid/widget/TextView;

    new-instance p3, Ljava/lang/StringBuilder;

    invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v0, ""

    invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v0, "%"

    invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p3

    invoke-virtual {p1, p3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 2
    iput p2, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->F:I

    return-void
.end method

.method protected onResume()V
    .locals 0

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onResume()V

    return-void
.end method

.method protected onStart()V
    .locals 4

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/ui/base/HomeAsBackActivity;->onStart()V

    .line 2
    invoke-virtual {p0}, Landroidx/appcompat/app/AppCompatActivity;->getSupportActionBar()Landroidx/appcompat/app/ActionBar;

    move-result-object v0

    .line 3
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v1

    invoke-virtual {p0}, Lcom/estrongs/android/ui/base/HomeAsBackActivity;->B()I

    move-result v2

    const v3, 0x7f060320

    invoke-virtual {v1, v2, v3}, Lcom/estrongs/android/ui/theme/b;->b(II)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroidx/appcompat/app/ActionBar;->setHomeAsUpIndicator(Landroid/graphics/drawable/Drawable;)V

    return-void
.end method

.method public onStartTrackingTouch(Landroid/widget/SeekBar;)V
    .locals 0

    return-void
.end method

.method public onStopTrackingTouch(Landroid/widget/SeekBar;)V
    .locals 0

    .line 1
    iget p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->F:I

    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->i(I)V

    return-void
.end method
